import request from './request'

// 轮播图的数据
export const swipeApi = () => {
  return request({ url: `/banner?type=2`, method: 'GET' })
}

//搜索
export const hotsearch= () => {
  return request({ url: `/search/hot/detail`, method: 'GET' })
}

export const searchsuggest= (keyword) => {
  return request({ url: `/search/suggest?keywords=${keyword}&type=mobile`, method: 'GET' })
}


export const searchresult= (keyword,types) => {
  return request({ url: `/cloudsearch?keywords=${keyword}&type=${types}`, method: 'GET' })
}

